<template>
    <div @click="search">
        <h1>{{title}}</h1>
        <img :src="url" alt="">
    </div>
</template>
<script>
export default {
    props:['title','url'],
    methods:{
        search(){
            this.$emit('search',this.url);
        }
    }
}
</script>
